package com.ywk.base.java8.optional;

/**
 * @author zbh
 * @date 2022/9/16 11:32
 */
public class User {

    private String id;

    private int age;

    private String name;

    private String unitId;

    private Integer salary;

    private Card card;

    public User(){}

    public User(String id) {
        this.id = id;
    }

    public User(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public User(String id, int age, String name,String unitId,int salary) {
        this.id = id;
        this.age = age;
        this.name = name;
        this.unitId=unitId;
        this.salary=salary;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public Card getCard() {
        return card;
    }

    public void setCard(Card card) {
        this.card = card;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", age=" + age +
                ", name='" + name + '\'' +
                ", unitId='" + unitId + '\'' +
                ", salary=" + salary +
                ", card=" + card +
                '}';
    }
}
